package com.github.admin.edu.security.jwt.server.controller;

import com.github.admin.edu.oauth.server.api.service.ServiceQueryUserInformationApi;
import com.github.admin.edu.security.jwt.server.service.ServerUserInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-8-30
 */
@RestController
public class ServiceUserInformationRestController implements ServiceQueryUserInformationApi {


    @Autowired
    private ServerUserInformationService service;

    @Override
    public String getUserRoleOrgId(@RequestParam("userId")String userId) {
        return service.getUserRoleOrgId(userId);
    }
}
